using System;

namespace RuoVea.Autowired
{
    /// <summary>
    /// AppSetting标记属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
    public class AppSettingAttribute : Attribute
    {
        /// <summary>
        /// 如果没有值，映射根节点
        /// </summary>
        public string SectionKey { get; set; }

        /// <summary>
        /// AppSetting标记属性
        /// </summary>
        /// <param name="sectionKey">sectionKey</param>
        public AppSettingAttribute(string sectionKey)
        {
            SectionKey = sectionKey;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public AppSettingAttribute()
        {
        }
    }
}